package com.quirka.igu;

import java.awt.Canvas;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.MediaTracker;
import java.awt.image.BufferedImage;


 public class ImagenCanvasUI extends Canvas {
     BufferedImage buffImage;
  
     
     public ImagenCanvasUI(BufferedImage buffImage) {
         this.buffImage=buffImage;
         MediaTracker media = new MediaTracker(this);         
         media.addImage(this.buffImage, 0);
             try {
             media.waitForID(0); 
             }        
         catch (Exception e) {}
     }  
    
    public void paint(Graphics g) {
         g.drawImage(buffImage, 0,0, this);
     }            
}